<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 代课表 基类
 * @Entity
 * @Table(name="sc_take_list", id={"id"})
 * @DDL("CREATE TABLE `sc_take_list` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `teacher_id` int(10) DEFAULT NULL COMMENT '老师id',
  `take_teacher_id` int(10) DEFAULT NULL COMMENT '代课老师id',
  `team_id` int(10) DEFAULT NULL COMMENT '班级id',
  `team_table_id` int(10) DEFAULT NULL COMMENT '代课的id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='代课表'")
 * @property int $id 
 * @property int $teacherId 老师id
 * @property int $takeTeacherId 代课老师id
 * @property int $teamId 班级id
 * @property int $teamTableId 代课的id
 */
abstract class ScTakeListBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 老师id
     * teacher_id
     * @Column(name="teacher_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teacherId;

    /**
     * 获取 teacherId - 老师id
     *
     * @return int
     */ 
    public function getTeacherId()
    {
        return $this->teacherId;
    }

    /**
     * 赋值 teacherId - 老师id
     * @param int $teacherId teacher_id
     * @return static
     */ 
    public function setTeacherId($teacherId)
    {
        $this->teacherId = $teacherId;
        return $this;
    }

    /**
     * 代课老师id
     * take_teacher_id
     * @Column(name="take_teacher_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $takeTeacherId;

    /**
     * 获取 takeTeacherId - 代课老师id
     *
     * @return int
     */ 
    public function getTakeTeacherId()
    {
        return $this->takeTeacherId;
    }

    /**
     * 赋值 takeTeacherId - 代课老师id
     * @param int $takeTeacherId take_teacher_id
     * @return static
     */ 
    public function setTakeTeacherId($takeTeacherId)
    {
        $this->takeTeacherId = $takeTeacherId;
        return $this;
    }

    /**
     * 班级id
     * team_id
     * @Column(name="team_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teamId;

    /**
     * 获取 teamId - 班级id
     *
     * @return int
     */ 
    public function getTeamId()
    {
        return $this->teamId;
    }

    /**
     * 赋值 teamId - 班级id
     * @param int $teamId team_id
     * @return static
     */ 
    public function setTeamId($teamId)
    {
        $this->teamId = $teamId;
        return $this;
    }

    /**
     * 代课的id
     * team_table_id
     * @Column(name="team_table_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teamTableId;

    /**
     * 获取 teamTableId - 代课的id
     *
     * @return int
     */ 
    public function getTeamTableId()
    {
        return $this->teamTableId;
    }

    /**
     * 赋值 teamTableId - 代课的id
     * @param int $teamTableId team_table_id
     * @return static
     */ 
    public function setTeamTableId($teamTableId)
    {
        $this->teamTableId = $teamTableId;
        return $this;
    }

}
